package com.zrrd.javaWeb.bean;

/**
 * @author WanJl
 * @version 1.0
 * @title User
 * @description 用户的实体类，它和数据库表user表是对应的，里面的属性和表中字段一一对应。
 * @create 2024/1/19 10:51
 */
public class User{
    private Integer uid;
    private String username;
    private String password;
    private String realname;
    private Integer age;
    private String gender;
    private String phone;

    public User() {
    }

    public User(Integer uid, String username, String password, String realname, Integer age, String gender, String phone) {
        this.uid = uid;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.age = age;
        this.gender = gender;
        this.phone = phone;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", realname='" + realname + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
